package com.sun.huazhi.aitaskservice.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller  // 注意不是 @RestController
public class RootController {

    @GetMapping("/")
    public String redirectToSwagger() {
        return "redirect:/swagger-ui.html";  // 自动跳转到 Swagger UI
    }
}